package com.example.yyjc.service.impl;

import com.example.yyjc.domain.countryanalyze.*;
import com.example.yyjc.domain.industryanalyze.*;
import com.example.yyjc.domain.selectionanalyze.CountrySecondCatCase;
import com.example.yyjc.mapper.SelectMapper;
import com.example.yyjc.service.SelectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName SelectServiceImpl
 * @Description TODO
 * @Author lvyongwei
 * @Date 2021-02-22 9:36
 **/
@Service
public class SelectServiceImpl implements SelectService {

    @Autowired
    private SelectMapper selectMapper;

    /**
     * 查询全部国家及日期信息
     * @return
     */
    @Override
    public List<Country> getCountry() {
        return selectMapper.getCountry();
    }

    /**
     * 查询商品数量占比
     * @return
     */
    @Override
    public List<OrderCountAnalysis> getOrderCountAnalysis() {
        return selectMapper.getOrderCountAnalysis();
    }

    /**
     * 查询商品价格占比
     * @return
     */
    @Override
    public List<PriceCountAnalysis> getPriceCountAnalysis() {
        return selectMapper.getPriceCountAnalysis();
    }

    /**
     * 查询国家月份一级类目占比
     * @return
     */
    @Override
    public List<MainTitleScale> getMainTitleScale() {
        return selectMapper.getMainTitleScale();
    }

    /**
     * 查询国家每个月份物流订单
     * @return
     */
    @Override
    public List<LogisticsOrder> getLogisticsOrder() {
        return selectMapper.getLogisticsOrder();
    }

    /**
     * 查询国家每个月份top10店铺
     * @return
     */
    @Override
    public List<ShopTopTen> getShopTopTen() {
        return selectMapper.getShopTopTen();
    }

    /**
     * 查询国家每个月份top10商品
     * @return
     */
    @Override
    public List<GoodsTopTen> getGoodsTopTen() {
        return selectMapper.getGoodsTopTen();
    }

    /**
     * 查询国家每个月份top1店铺名称
     * @return
     */
    @Override
    public List<CountryTopOneShopName> getCountryTopOneShopName() {
        return selectMapper.getCountryTopOneShopName();
    }

    /**
     * 查询国家每个月份top1店铺商品信息
     * @return
     */
    @Override
    public List<CountryToponeShopMsg> getCountryToponeShopMsg() {
        return selectMapper.getCountryToponeShopMsg();
    }

    /**
     * 查询所有一级类目
     * @return
     */
    @Override
    public List<FirstCat> getFirstCat() {
        return selectMapper.getFirstCat();
    }

    /**
     * 一级类目每月销售额
     * @return
     */
    @Override
    public List<FirstCatSale> getFirstCatSale() {
        return selectMapper.getFirstCatSale();
    }

    /**
     * 查询所有二级类目
     * @return
     */
    @Override
    public List<SecondCat> getSecondCat() {
        return selectMapper.getSecondCat();
    }

    /**
     * 二级类目每月销售额
     * @return
     */
    @Override
    public List<SecondCatSale> getSecondCatSale() {
        return selectMapper.getSecondCatSale();
    }

    /**
     * 获取国家每月二级类目销售额信息
     * @return
     */
    @Override
    public List<SecondCatCountrySaleCount> getSecondCatCountrySaleCount() {
        return selectMapper.getSecondCatCountrySaleCount();
    }

    /**
     * 获取二级类目每个月份国家物流订单量
     * @return
     */
    @Override
    public List<DeliveryCountry> getDeliveryCountry() {
        return selectMapper.getDeliveryCountry();
    }

    /**
     * 获取二级类目每个月份价格区间商品/订单数量
     * @return
     */
    @Override
    public List<SecondCatPriceScale> getSecondCatPriceScale() {
        return selectMapper.getSecondCatPriceScale();
    }

    /**
     * 获取二级类目每个月份订单区间商品/订单数量
     * @return
     */
    @Override
    public List<SecondCatOrderScale> getSecondCatOrderScale() {
        return selectMapper.getSecondCatOrderScale();
    }

    /**
     * 获取二级类目每个月top10店铺信息
     * @return
     */
    @Override
    public List<SecondCatShopTopTen> getSecondCatShopTopTen() {
        return selectMapper.getSecondCatShopTopTen();
    }

    /**
     * 获取二级类目每个月top10商品信息
     * @return
     */
    @Override
    public List<SecondCatGoodsTopTen> getSecondCatGoodsTopTen() {
        return selectMapper.getSecondCatGoodsTopTen();
    }

    /**
     * 获取二级类目每个月top10国家top3物流信息
     * @return
     */
    @Override
    public List<SecondCatTopLogistics> getSecondCatTopLogistics() {
        return selectMapper.getSecondCatTopLogistics();
    }

    /**
     * 获取Aliexpress前10国家信息
     * @return
     */
    @Override
    public List<Aliexpress> getAliexpress() {
        return selectMapper.getAliexpress();
    }

    /**
     * 获取Aliexpress的前10二级类目信息
     * @return
     */
    @Override
    public List<AliexpressSecondCatTopTen> getAliexpressSecondCatTopTen() {
        return selectMapper.getAliexpressSecondCatTopTen();
    }

    /**
     * 获取国家每个月份二级类目情况
     * @return
     */
    @Override
    public List<CountrySecondCatCase> getCountrySecondCatCase() {
        return selectMapper.getCountrySecondCatCase();
    }
}
